<template>
  <appTopNav />
  <appHeader />
  <appHeaderSticky />
  <main class="app-body">
    <!-- 二级路由 -->
    <router-view></router-view>
    <!-- <v /> -->
  </main>
  <appFooter />
</template>

<script setup>
import appTopNav from '@/components/app-top-nav'
import appHeader from '@/components/app-header'
import appFooter from '@/components/app-footer'
import appHeaderSticky from '@/components/app-header-sticky'
import { useStore } from 'vuex'

const store = useStore()
store.dispatch('category/getList')
</script>

<style lang="less" scoped>
.app-body {
  min-height: 600px;
}
</style>
